/*
 * @Author: GuitarXiaohe && 2205227953@qq.com
 * @Date: 2024-01-15 14:00:05
 * @LastEditors: GuitarXiaohe && 2205227953@qq.com
 * @LastEditTime: 2024-01-15 15:37:45
 * @FilePath: /umi/src/utils/auth.ts
 * @Description: 
 * QQ:2205227953,邮箱:2205227953@qq.com
 * Copyright (c) 2024 by GuitarXiaohe, All Rights Reserved. 
 */
import Cookies from 'js-cookie'

const TokenKey = 'Admin-Token'

export function getToken() {
  return Cookies.get(TokenKey)
}

export function setToken(token:string) {
  return Cookies.set(TokenKey, token)
}

export function removeToken() {
  return Cookies.remove(TokenKey)
}
